package com.demo.index.service.impl;

import com.demo.entity.TestDTO;
import com.demo.index.remote.TestRemote;
import com.demo.index.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestRemote testRemote;

    /**
     * demo
     * @return
     */
    public String test() {
        TestDTO testDTO = new TestDTO();
        testDTO.setId("1");
        testDTO.setName("二狗子");
        return testRemote.test(testDTO);
    }
}
